package com.demo;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * 启动类，这里redis不需要自动装配，所以去除了，@see #com.demo.common.cache.RedisConfig
 */
@SpringBootApplication(scanBasePackages = "com.demo",exclude = {RedisAutoConfiguration.class})
@EnableAspectJAutoProxy(exposeProxy = true,proxyTargetClass = true)
@Slf4j
public class DemoApplication {

    public static void main(String[] args)throws Exception{
        SpringApplication app = new SpringApplication(DemoApplication.class);
        app.run(args);
    }
}
